<?xml version='1.0' encoding='UTF-8' ?>
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
    <link type="text/css" rel="stylesheet" href="styles/StyleSheet.css" />
    <link type="text/css" rel="stylesheet" href="styles/jquery-ui.css" />

    
    <ui:insert name="header"></ui:insert>
    <title><h:outputText value= "#{commonBean.appTituloVentana}"/></title>
    
    <script type="text/javascript">
	//<![CDATA[
	function validate(e){
		var key_code = (document.all) ? e.keyCode : e.which;
		pattern =/[0-9\.]/;
		if(key_code == 8 || key_code == 0){
			return true;
		} else {
			key_value = String.fromCharCode(key_code);
		}
		return pattern.test(key_value);
		}
	//]]>
  </script>
    
</h:head>
<h:body>
	<div id="Pagina">
		<div id="Cabecera">
			<h:form>
				<h1><h:outputText value= "#{commonBean.appTitulo}"/></h1>
				
			</h:form>
		</div>
		<h:graphicImage id ="Logo" value="images/img_uwiener.jpg"/>
		
		<div align="right">
			
			<h:outputLink value="/sistemapagos/j_spring_security_check">Cerrar Session</h:outputLink>						
		</div>
			
			<p:layoutUnit position="center" styleClass="pnlLayoutContenido">
				<h:form>
					<p:tabMenu rendered="true" activeIndex="#{menuBean.index}">  
					    <p:menuitem value="Registrar Prospecto"  icon="ui-icon-circle-plus" action="#{menuBean.redirect(0)}"/>  
					    <p:menuitem value="Pago Servicios"  icon="ui-icon-cart" action="#{menuBean.redirect(1)}" />  					    	  
					</p:tabMenu>  
				</h:form>			
			</p:layoutUnit>
		<ui:insert name="content"></ui:insert>
	</div>
</h:body>
</html>